#include "lib_d.h"
#include <iostream>

namespace LibD {
    static int item_count = 0;
    
    void init() {
        std::cout << "LibD: Initializing..." << std::endl;
        item_count = 0;
    }
    
    void add_item(int item) {
        std::cout << "LibD: Adding item: " << item << std::endl;
        item_count++;
    }
    
    int get_item_count() {
        std::cout << "LibD: Returning " << item_count << " items" << std::endl;
        return item_count;
    }
    
    void clear_items() {
        std::cout << "LibD: Clearing all items" << std::endl;
        item_count = 0;
    }
}